.class public final Lorg/microemu/device/impl/ButtonName;
.super Ljava/lang/Object;
.source "ButtonName.java"


# static fields
.field public static final BACK_SPACE:Lorg/microemu/device/impl/ButtonName;

.field public static final DELETE:Lorg/microemu/device/impl/ButtonName;

.field public static final DOWN:Lorg/microemu/device/impl/ButtonName;

.field public static final KEY_NUM0:Lorg/microemu/device/impl/ButtonName;

.field public static final KEY_NUM1:Lorg/microemu/device/impl/ButtonName;

.field public static final KEY_NUM2:Lorg/microemu/device/impl/ButtonName;

.field public static final KEY_NUM3:Lorg/microemu/device/impl/ButtonName;

.field public static final KEY_NUM4:Lorg/microemu/device/impl/ButtonName;

.field public static final KEY_NUM5:Lorg/microemu/device/impl/ButtonName;

.field public static final KEY_NUM6:Lorg/microemu/device/impl/ButtonName;

.field public static final KEY_NUM7:Lorg/microemu/device/impl/ButtonName;

.field public static final KEY_NUM8:Lorg/microemu/device/impl/ButtonName;

.field public static final KEY_NUM9:Lorg/microemu/device/impl/ButtonName;

.field public static final KEY_POUND:Lorg/microemu/device/impl/ButtonName;

.field public static final KEY_STAR:Lorg/microemu/device/impl/ButtonName;

.field public static final LEFT:Lorg/microemu/device/impl/ButtonName;

.field public static final RIGHT:Lorg/microemu/device/impl/ButtonName;

.field public static final SELECT:Lorg/microemu/device/impl/ButtonName;

.field public static final SOFT1:Lorg/microemu/device/impl/ButtonName;

.field public static final SOFT2:Lorg/microemu/device/impl/ButtonName;

.field public static final SOFT3:Lorg/microemu/device/impl/ButtonName;

.field public static final UP:Lorg/microemu/device/impl/ButtonName;

.field private static altNames:Ljava/util/Map;

.field static class$org$microemu$device$impl$ButtonName:Ljava/lang/Class;


# instance fields
.field private name:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 9

    .prologue
    const/4 v7, 0x2

    const/4 v6, 0x1

    const/4 v5, 0x0

    const-string v8, "org.microemu.device.impl.ButtonName"

    .line 44
    new-instance v2, Ljava/util/HashMap;

    invoke-direct {v2}, Ljava/util/HashMap;-><init>()V

    sput-object v2, Lorg/microemu/device/impl/ButtonName;->altNames:Ljava/util/Map;

    .line 46
    new-instance v2, Lorg/microemu/device/impl/ButtonName;

    invoke-direct {v2}, Lorg/microemu/device/impl/ButtonName;-><init>()V

    sput-object v2, Lorg/microemu/device/impl/ButtonName;->SOFT1:Lorg/microemu/device/impl/ButtonName;

    .line 48
    new-instance v2, Lorg/microemu/device/impl/ButtonName;

    invoke-direct {v2}, Lorg/microemu/device/impl/ButtonName;-><init>()V

    sput-object v2, Lorg/microemu/device/impl/ButtonName;->SOFT2:Lorg/microemu/device/impl/ButtonName;

    .line 50
    new-instance v2, Lorg/microemu/device/impl/ButtonName;

    invoke-direct {v2}, Lorg/microemu/device/impl/ButtonName;-><init>()V

    sput-object v2, Lorg/microemu/device/impl/ButtonName;->SOFT3:Lorg/microemu/device/impl/ButtonName;

    .line 52
    new-instance v2, Lorg/microemu/device/impl/ButtonName;

    const-string v3, "SEL"

    invoke-direct {v2, v3}, Lorg/microemu/device/impl/ButtonName;-><init>(Ljava/lang/String;)V

    sput-object v2, Lorg/microemu/device/impl/ButtonName;->SELECT:Lorg/microemu/device/impl/ButtonName;

    .line 54
    new-instance v2, Lorg/microemu/device/impl/ButtonName;

    const-string v3, "U"

    invoke-direct {v2, v3}, Lorg/microemu/device/impl/ButtonName;-><init>(Ljava/lang/String;)V

    sput-object v2, Lorg/microemu/device/impl/ButtonName;->UP:Lorg/microemu/device/impl/ButtonName;

    .line 56
    new-instance v2, Lorg/microemu/device/impl/ButtonName;

    const-string v3, "D"

    invoke-direct {v2, v3}, Lorg/microemu/device/impl/ButtonName;-><init>(Ljava/lang/String;)V

    sput-object v2, Lorg/microemu/device/impl/ButtonName;->DOWN:Lorg/microemu/device/impl/ButtonName;

    .line 58
    new-instance v2, Lorg/microemu/device/impl/ButtonName;

    const-string v3, "L"

    invoke-direct {v2, v3}, Lorg/microemu/device/impl/ButtonName;-><init>(Ljava/lang/String;)V

    sput-object v2, Lorg/microemu/device/impl/ButtonName;->LEFT:Lorg/microemu/device/impl/ButtonName;

    .line 60
    new-instance v2, Lorg/microemu/device/impl/ButtonName;

    const-string v3, "R"

    invoke-direct {v2, v3}, Lorg/microemu/device/impl/ButtonName;-><init>(Ljava/lang/String;)V

    sput-object v2, Lorg/microemu/device/impl/ButtonName;->RIGHT:Lorg/microemu/device/impl/ButtonName;

    .line 64
    new-instance v2, Lorg/microemu/device/impl/ButtonName;

    invoke-direct {v2}, Lorg/microemu/device/impl/ButtonName;-><init>()V

    sput-object v2, Lorg/microemu/device/impl/ButtonName;->BACK_SPACE:Lorg/microemu/device/impl/ButtonName;

    .line 66
    new-instance v2, Lorg/microemu/device/impl/ButtonName;

    invoke-direct {v2}, Lorg/microemu/device/impl/ButtonName;-><init>()V

    sput-object v2, Lorg/microemu/device/impl/ButtonName;->DELETE:Lorg/microemu/device/impl/ButtonName;

    .line 70
    new-instance v2, Lorg/microemu/device/impl/ButtonName;

    const-string v3, "0"

    invoke-direct {v2, v3}, Lorg/microemu/device/impl/ButtonName;-><init>(Ljava/lang/String;)V

    sput-object v2, Lorg/microemu/device/impl/ButtonName;->KEY_NUM0:Lorg/microemu/device/impl/ButtonName;

    .line 72
    new-instance v2, Lorg/microemu/device/impl/ButtonName;

    const-string v3, "1"

    invoke-direct {v2, v3}, Lorg/microemu/device/impl/ButtonName;-><init>(Ljava/lang/String;)V

    sput-object v2, Lorg/microemu/device/impl/ButtonName;->KEY_NUM1:Lorg/microemu/device/impl/ButtonName;

    .line 74
    new-instance v2, Lorg/microemu/device/impl/ButtonName;

    const-string v3, "2"

    invoke-direct {v2, v3}, Lorg/microemu/device/impl/ButtonName;-><init>(Ljava/lang/String;)V

    sput-object v2, Lorg/microemu/device/impl/ButtonName;->KEY_NUM2:Lorg/microemu/device/impl/ButtonName;

    .line 76
    new-instance v2, Lorg/microemu/device/impl/ButtonName;

    const-string v3, "3"

    invoke-direct {v2, v3}, Lorg/microemu/device/impl/ButtonName;-><init>(Ljava/lang/String;)V

    sput-object v2, Lorg/microemu/device/impl/ButtonName;->KEY_NUM3:Lorg/microemu/device/impl/ButtonName;

    .line 78
    new-instance v2, Lorg/microemu/device/impl/ButtonName;

    const-string v3, "4"

    invoke-direct {v2, v3}, Lorg/microemu/device/impl/ButtonName;-><init>(Ljava/lang/String;)V

    sput-object v2, Lorg/microemu/device/impl/ButtonName;->KEY_NUM4:Lorg/microemu/device/impl/ButtonName;

    .line 80
    new-instance v2, Lorg/microemu/device/impl/ButtonName;

    const-string v3, "5"

    invoke-direct {v2, v3}, Lorg/microemu/device/impl/ButtonName;-><init>(Ljava/lang/String;)V

    sput-object v2, Lorg/microemu/device/impl/ButtonName;->KEY_NUM5:Lorg/microemu/device/impl/ButtonName;

    .line 82
    new-instance v2, Lorg/microemu/device/impl/ButtonName;

    const-string v3, "6"

    invoke-direct {v2, v3}, Lorg/microemu/device/impl/ButtonName;-><init>(Ljava/lang/String;)V

    sput-object v2, Lorg/microemu/device/impl/ButtonName;->KEY_NUM6:Lorg/microemu/device/impl/ButtonName;

    .line 84
    new-instance v2, Lorg/microemu/device/impl/ButtonName;

    const-string v3, "7"

    invoke-direct {v2, v3}, Lorg/microemu/device/impl/ButtonName;-><init>(Ljava/lang/String;)V

    sput-object v2, Lorg/microemu/device/impl/ButtonName;->KEY_NUM7:Lorg/microemu/device/impl/ButtonName;

    .line 86
    new-instance v2, Lorg/microemu/device/impl/ButtonName;

    const-string v3, "8"

    invoke-direct {v2, v3}, Lorg/microemu/device/impl/ButtonName;-><init>(Ljava/lang/String;)V

    sput-object v2, Lorg/microemu/device/impl/ButtonName;->KEY_NUM8:Lorg/microemu/device/impl/ButtonName;

    .line 88
    new-instance v2, Lorg/microemu/device/impl/ButtonName;

    const-string v3, "9"

    invoke-direct {v2, v3}, Lorg/microemu/device/impl/ButtonName;-><init>(Ljava/lang/String;)V

    sput-object v2, Lorg/microemu/device/impl/ButtonName;->KEY_NUM9:Lorg/microemu/device/impl/ButtonName;

    .line 90
    new-instance v2, Lorg/microemu/device/impl/ButtonName;

    const/4 v3, 0x3

    new-array v3, v3, [Ljava/lang/String;

    const-string v4, "*"

    aput-object v4, v3, v5

    const-string v4, "STAR"

    aput-object v4, v3, v6

    const-string v4, "ASTERISK"

    aput-object v4, v3, v7

    invoke-direct {v2, v3}, Lorg/microemu/device/impl/ButtonName;-><init>([Ljava/lang/String;)V

    sput-object v2, Lorg/microemu/device/impl/ButtonName;->KEY_STAR:Lorg/microemu/device/impl/ButtonName;

    .line 92
    new-instance v2, Lorg/microemu/device/impl/ButtonName;

    new-array v3, v7, [Ljava/lang/String;

    const-string v4, "#"

    aput-object v4, v3, v5

    const-string v4, "POUND"

    aput-object v4, v3, v6

    invoke-direct {v2, v3}, Lorg/microemu/device/impl/ButtonName;-><init>([Ljava/lang/String;)V

    sput-object v2, Lorg/microemu/device/impl/ButtonName;->KEY_POUND:Lorg/microemu/device/impl/ButtonName;

    .line 118
    sget-object v2, Lorg/microemu/device/impl/ButtonName;->class$org$microemu$device$impl$ButtonName:Ljava/lang/Class;

    if-nez v2, :cond_1

    const-string v2, "org.microemu.device.impl.ButtonName"

    invoke-static {v8}, Lorg/microemu/device/impl/ButtonName;->class$(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v2

    sput-object v2, Lorg/microemu/device/impl/ButtonName;->class$org$microemu$device$impl$ButtonName:Ljava/lang/Class;

    :goto_0
    invoke-virtual {v2}, Ljava/lang/Class;->getDeclaredFields()[Ljava/lang/reflect/Field;

    move-result-object v0

    .line 119
    .local v0, fields:[Ljava/lang/reflect/Field;
    const/4 v1, 0x0

    .local v1, i:I
    :goto_1
    array-length v2, v0

    if-ge v1, v2, :cond_3

    .line 120
    aget-object v2, v0, v1

    invoke-virtual {v2}, Ljava/lang/reflect/Field;->getType()Ljava/lang/Class;

    move-result-object v2

    sget-object v3, Lorg/microemu/device/impl/ButtonName;->class$org$microemu$device$impl$ButtonName:Ljava/lang/Class;

    if-nez v3, :cond_2

    const-string v3, "org.microemu.device.impl.ButtonName"

    invoke-static {v8}, Lorg/microemu/device/impl/ButtonName;->class$(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v3

    sput-object v3, Lorg/microemu/device/impl/ButtonName;->class$org$microemu$device$impl$ButtonName:Ljava/lang/Class;

    :goto_2
    if-ne v2, v3, :cond_0

    .line 122
    :try_start_0
    aget-object v2, v0, v1

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lorg/microemu/device/impl/ButtonName;

    aget-object v3, v0, v1

    invoke-virtual {v3}, Ljava/lang/reflect/Field;->getName()Ljava/lang/String;

    move-result-object v3

    iput-object v3, v2, Lorg/microemu/device/impl/ButtonName;->name:Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_0

    .line 119
    :cond_0
    :goto_3
    add-int/lit8 v1, v1, 0x1

    goto :goto_1

    .line 118
    .end local v0           #fields:[Ljava/lang/reflect/Field;
    .end local v1           #i:I
    :cond_1
    sget-object v2, Lorg/microemu/device/impl/ButtonName;->class$org$microemu$device$impl$ButtonName:Ljava/lang/Class;

    goto :goto_0

    .line 120
    .restart local v0       #fields:[Ljava/lang/reflect/Field;
    .restart local v1       #i:I
    :cond_2
    sget-object v3, Lorg/microemu/device/impl/ButtonName;->class$org$microemu$device$impl$ButtonName:Ljava/lang/Class;

    goto :goto_2

    .line 128
    :cond_3
    return-void

    .line 123
    :catch_0
    move-exception v2

    goto :goto_3
.end method

.method private constructor <init>()V
    .locals 1

    .prologue
    .line 130
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 94
    const-string v0, "n/a"

    iput-object v0, p0, Lorg/microemu/device/impl/ButtonName;->name:Ljava/lang/String;

    .line 132
    return-void
.end method

.method private constructor <init>(Ljava/lang/String;)V
    .locals 1
    .parameter "name"

    .prologue
    .line 134
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 94
    const-string v0, "n/a"

    iput-object v0, p0, Lorg/microemu/device/impl/ButtonName;->name:Ljava/lang/String;

    .line 135
    sget-object v0, Lorg/microemu/device/impl/ButtonName;->altNames:Ljava/util/Map;

    invoke-interface {v0, p1, p0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 136
    return-void
.end method

.method private constructor <init>([Ljava/lang/String;)V
    .locals 3
    .parameter "names"

    .prologue
    .line 138
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 94
    const-string v1, "n/a"

    iput-object v1, p0, Lorg/microemu/device/impl/ButtonName;->name:Ljava/lang/String;

    .line 139
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    array-length v1, p1

    if-ge v0, v1, :cond_0

    .line 140
    sget-object v1, Lorg/microemu/device/impl/ButtonName;->altNames:Ljava/util/Map;

    aget-object v2, p1, v0

    invoke-interface {v1, v2, p0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 139
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 142
    :cond_0
    return-void
.end method

.method static class$(Ljava/lang/String;)Ljava/lang/Class;
    .locals 2
    .parameter "x0"

    .prologue
    .line 99
    :try_start_0
    invoke-static {p0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
    :try_end_0
    .catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v1

    return-object v1

    :catch_0
    move-exception v0

    .local v0, x1:Ljava/lang/ClassNotFoundException;
    new-instance v1, Ljava/lang/NoClassDefFoundError;

    invoke-direct {v1}, Ljava/lang/NoClassDefFoundError;-><init>()V

    invoke-virtual {v1, v0}, Ljava/lang/NoClassDefFoundError;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;

    move-result-object v1

    throw v1
.end method

.method public static getButtonName(Ljava/lang/String;)Lorg/microemu/device/impl/ButtonName;
    .locals 6
    .parameter "functionName"

    .prologue
    const-string v4, "org.microemu.device.impl.ButtonName"

    .line 97
    invoke-virtual {p0}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;

    move-result-object v3

    .line 99
    .local v3, name:Ljava/lang/String;
    :try_start_0
    sget-object v4, Lorg/microemu/device/impl/ButtonName;->class$org$microemu$device$impl$ButtonName:Ljava/lang/Class;

    if-nez v4, :cond_0

    const-string v4, "org.microemu.device.impl.ButtonName"

    invoke-static {v4}, Lorg/microemu/device/impl/ButtonName;->class$(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v4

    sput-object v4, Lorg/microemu/device/impl/ButtonName;->class$org$microemu$device$impl$ButtonName:Ljava/lang/Class;

    :goto_0
    invoke-virtual {v4, v3}, Ljava/lang/Class;->getField(Ljava/lang/String;)Ljava/lang/reflect/Field;

    move-result-object v2

    .line 100
    .local v2, field:Ljava/lang/reflect/Field;
    invoke-virtual {v2}, Ljava/lang/reflect/Field;->getType()Ljava/lang/Class;

    move-result-object v4

    sget-object v5, Lorg/microemu/device/impl/ButtonName;->class$org$microemu$device$impl$ButtonName:Ljava/lang/Class;

    if-nez v5, :cond_1

    const-string v5, "org.microemu.device.impl.ButtonName"

    invoke-static {v5}, Lorg/microemu/device/impl/ButtonName;->class$(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v5

    sput-object v5, Lorg/microemu/device/impl/ButtonName;->class$org$microemu$device$impl$ButtonName:Ljava/lang/Class;

    :goto_1
    if-ne v4, v5, :cond_2

    .line 101
    const/4 v4, 0x0

    invoke-virtual {v2, v4}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    move-object v0, v4

    check-cast v0, Lorg/microemu/device/impl/ButtonName;

    move-object p0, v0

    .end local p0
    move-object v4, p0

    .line 113
    .end local v2           #field:Ljava/lang/reflect/Field;
    :goto_2
    return-object v4

    .line 99
    .restart local p0
    :cond_0
    sget-object v4, Lorg/microemu/device/impl/ButtonName;->class$org$microemu$device$impl$ButtonName:Ljava/lang/Class;

    goto :goto_0

    .line 100
    .restart local v2       #field:Ljava/lang/reflect/Field;
    :cond_1
    sget-object v5, Lorg/microemu/device/impl/ButtonName;->class$org$microemu$device$impl$ButtonName:Ljava/lang/Class;
    :try_end_0
    .catch Ljava/lang/NoSuchFieldException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    .line 104
    .end local v2           #field:Ljava/lang/reflect/Field;
    :catch_0
    move-exception v4

    .line 106
    :cond_2
    :goto_3
    sget-object v4, Lorg/microemu/device/impl/ButtonName;->altNames:Ljava/util/Map;

    invoke-interface {v4, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lorg/microemu/device/impl/ButtonName;

    .line 107
    .local v1, btn:Lorg/microemu/device/impl/ButtonName;
    if-nez v1, :cond_3

    .line 109
    new-instance v1, Lorg/microemu/device/impl/ButtonName;

    .end local v1           #btn:Lorg/microemu/device/impl/ButtonName;
    invoke-direct {v1}, Lorg/microemu/device/impl/ButtonName;-><init>()V

    .line 110
    .restart local v1       #btn:Lorg/microemu/device/impl/ButtonName;
    iput-object p0, v1, Lorg/microemu/device/impl/ButtonName;->name:Ljava/lang/String;

    :cond_3
    move-object v4, v1

    .line 113
    goto :goto_2

    .line 103
    .end local v1           #btn:Lorg/microemu/device/impl/ButtonName;
    :catch_1
    move-exception v4

    goto :goto_3
.end method


# virtual methods
.method public getName()Ljava/lang/String;
    .locals 1

    .prologue
    .line 145
    iget-object v0, p0, Lorg/microemu/device/impl/ButtonName;->name:Ljava/lang/String;

    return-object v0
.end method

.method public toString()Ljava/lang/String;
    .locals 1

    .prologue
    .line 149
    iget-object v0, p0, Lorg/microemu/device/impl/ButtonName;->name:Ljava/lang/String;

    return-object v0
.end method
